package org.luxor.commons.storage.exception;

import org.luxor.commons.core.exception.BaseException;
import org.luxor.commons.core.web.RestStatus;

import java.util.Map;

/**
 * 文件上传/下载服务异常
 *
 * @author Mr.yan @date 2020/2/3
 */
public class StorageServiceException extends BaseException {

    public StorageServiceException(String message) {
        super(message);
    }

    public StorageServiceException(String message, Throwable e) {
        super(message, e);
    }

    public StorageServiceException(Integer code, String message) {
        super(code, message);
    }

    public StorageServiceException(Integer code, String message, String error) {
        super(code, message, error);
    }

    public StorageServiceException(Integer code, String message, Throwable e) {
        super(code, message, e);
    }

    public StorageServiceException(RestStatus restStatus) {
        super(restStatus);
    }

    public StorageServiceException(RestStatus restStatus, String error) {
        super(restStatus, error);
    }

    public StorageServiceException(RestStatus restStatus, Throwable e) {
        super(restStatus, e);
    }

    @Override
    public Map<String, Object> asMap(Boolean isShowErrorDetail) {
        return super.asMap(isShowErrorDetail);
    }
}
